﻿﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>My JSP 'SurveyAudi.jsp' starting page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <meta name="referrer" content="no-referrer">
    <link rel="stylesheet" type="text/css" href="../Css/Admin.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/Css/bootstrap.min.css">
    <script language="JavaScript" src="../Js/Func.js"></script>
    <script language="javascript">window.onload = tableFix;</script>
    <script type="text/javascript">
        var words = "<%--<%=StringUtil.encodeString(request.getParameter("words")) %>--%>";
        if (words != 'null' && words != '') {
            alert(words);
        }
    </script>


</head>

<body>
<div class=nav><a href=admin_main.jsp>桌面</a>»问卷统计
    <hr>
</div>

<table class=table cellspacing="0" cellpadding="0" align="center">
    <tbody>
    <tr>
        <th width=7%>编号</th>
        <th width=20%>问卷名称</th>
        <th width=15%>发起者 <br></th>
        <th>创建时间 <br></th>
        <th>结束日期<br></th>
        <th width=7%>审核 <br></th>
        <th>操作 <br></th>
    </tr>
    </tbody>

        <tbody>
        <c:forEach items="${pageBean.list}" var="survey">
        <tr>
            <td>${survey.id}</td>
            <td>${survey.name}</td>
            <td>${survey.author}</td>
            <td>${survey.createdate}</td>
            <td>${survey.endtime}</td>
            <%--<td>${survey.getIsCheck}</td>
            <td><img src='images/on.gif'><img src='images/off.gif'></td>--%>
            <td>
                <c:if test="${survey.ischeck==1}">
                    <img src="../admin/images/on.gif">
                </c:if>
                <c:if test="${survey.ischeck==0}">
                    <img src="../admin/images/off.gif">
                </c:if>
            </td>
            <td>
                <a href=/statistics/do?sid=${survey.id}>查看统计</a>
                <%--<a href=/admin/ShowSheets.jsp?sid=${survey.id}>查看答卷</a>--%>
            </td>
        </tr>
         </c:forEach>
        </tbody>
    </table>
    <div class="pull-right">
        <!-- 用于javascript提交，搜索内容 -->
        <script type="text/javascript">
            function page(pageCode) {
                window.location.href = "${pageContext.request.contextPath}/surveyManage/list?pageCode="
                    + pageCode;
            }
        </script>
        <jsp:include page="/page.jsp"></jsp:include>
    </div>

    <%--<%
       /* for (Survey survey : sList)*/ {
    %>
    <tr>
        &lt;%&ndash;<td><%=survey.getSId() %>
        </td>
        <td><%=survey.getSName() %>
        </td>
        <td><%=survey.getSAuthor() %>
        </td>
        <td><%=survey.getSCreateDate() %>
        </td>
        <td><%=survey.getSExpireDate() %>
        </td>
        <td><%=survey.getSIsAudited() ? "<img src='images/on.gif'>" : "<img src='images/off.gif'>" %>
        </td>
        <td>
            <a href=SurveyStatisShow.jsp?sid=<%=survey.getSId() %>>查看统计</a>||
            <a href=ShowSheets.jsp?sid=<%=survey.getSId() %>>查看答卷</a>
        </td>&ndash;%&gt;
    </tr>
    <%} %>
    <tr>
        &lt;%&ndash;<td colspan=7 align="right"><%=pc.getCurrentPageHTML() %><%=pc.getCountPageHTML() %>|<%=pc.getFirstPageHTML() %>
            |<%=pc.getPageUpHTML() %>|<%=pc.getPageDownHTML() %>|<%=pc.getLastPageHTML() %>
        </td>&ndash;%&gt;
    </tr>--%>


</body>
</html>
